package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YufuToBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YufuToService extends BaseService<YufuToBean> {

	YufuToBean getYufuToBeanById(String id) throws Exception;
	
	void removeYufuToBeanById(String id) throws Exception;
	
	void removeYufuToBeanByIds(String ids) throws Exception;
	
	YufuToBean saveYufuToBean(YufuToBean crm) throws Exception;
	
	YufuToBean updateYufuToBean(YufuToBean crm) throws Exception;
	
	Page<YufuToBean>  findYufuToBeanByCond(YufuToBean bean,
			Page<YufuToBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYufuToBeanExt(String sql) throws Exception;

	String findYufuToBeanExtCreate(String tableName) throws Exception;

	String findYufuToBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYufuToBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYufuToBeanExtData(String tableName, String id)
			throws Exception;
}